package at.fhj.itm10.ticketmaster.services.impl;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import at.fhj.itm10.ticketmaster.dao.CustomerDAO;
import at.fhj.itm10.ticketmaster.dao.DAOException;
import at.fhj.itm10.ticketmaster.dao.EventDAO;
import at.fhj.itm10.ticketmaster.entities.Customer;
import at.fhj.itm10.ticketmaster.entities.Event;
import at.fhj.itm10.ticketmaster.helper.Validator;
import at.fhj.itm10.ticketmaster.services.ServiceException;

public class CustomerDAOStub extends CustomerDAO {

	private CustomerDAOStub dao;
	
	public CustomerDAOStub(Connection connection) throws DAOException {
		
		super(connection);
		// TODO Auto-generated constructor stub
	}
	
	public void insert(Customer entity) throws DAOException {
	
	}

	public void update(Customer entity) throws DAOException {
		
	}

	public void delete(Customer entity) throws DAOException {
		
	}

	
	public Customer findById(long id) throws DAOException {
		return null;
	}

	/**
	 * Find all by email.
	 * 
	 * @param email
	 * @return List<Customer>
	 * @throws DAOException
	 */
	public List<Customer> findByEMail(String email) throws DAOException {
		System.out.println("KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK");
		
		DAOException e = new DAOException("fuu");
		
		throw new ServiceException("Error on retrieving data", e);

	}

	/**
	 * Find all by username
	 * 
	 * @param username
	 * @return List<Customer>
	 * @throws DAOException
	 */
	public List<Customer> findByUsername(String username) throws DAOException {
		
		return null;
	}

	/**
	 * Find all.
	 * 
	 * @return List<Customer>
	 * @throws DAOException
	 */
	public List<Customer> findAll() throws DAOException {
		
		return null;
	}

	/**
	 * {@inheritDoc}
	 */
	protected Customer fillEntityByResult(ResultSet resultSet) throws DAOException {
		
		return null;
	}

	
}
